import ToolActionApi from "@/tool/http/tool-action.js";

let productAction = ToolActionApi.init("things_product");
let deviceAction = ToolActionApi.init("things_device");

let productMeta = { name: "product_id", memo: "产品信息" };
let deviceMeta = { name: "device_id", memo: "设备信息" };

const rule = {
  queryParams: [],
  metadata: [productMeta, deviceMeta],
};

export default async function () {
  productMeta.dictList = await productAction.dict();
  deviceMeta.dictList = await deviceAction.dict();
  return rule;
}
